-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed the issue of the main page getting stuck due to the long execution time required for updates #17626
Conversation
…ion time required for updates
Interface Check ReportThis pull request does not change any public interfaces ! |
@@ -58,6 +58,7 @@ class CC_EX_DLL AssetsManagerEx : public RefCounted { | |||
DOWNLOADING_MANIFEST, | |||
MANIFEST_LOADED, | |||
NEED_UPDATE, | |||
PARPER_UPDATING, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this event mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indicates that the prepare update function is being processed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is PARPER
a typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, fiexed.
|
||
void AssetsManagerEx::prepareUpdateAsync(const PrepareUpdateFinishedCallback &cb) { | ||
// Avoiding multiple function calls. | ||
if (_updateState != State::NEED_UPDATE || _updateState == State::PARPER_UPDATING) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to print a warning log.
…ion time required for updates (cocos#17626) * Fixed the issue of the main page getting stuck due to the long execution time required for updates --------- Co-authored-by: qgh <>
…ion time required for updates (cocos#17626) * Fixed the issue of the main page getting stuck due to the long execution time required for updates --------- Co-authored-by: qgh <> (cherry picked from commit c679595)
Re: #
Changelog
#17544
Continuous Integration
This pull request:
Compatibility Check
This pull request: